package cn.itsource.serivce.impl;

import cn.itsource.domain.Menu;
import cn.itsource.mapper.EmployeeMapper;
import cn.itsource.mapper.MenuMapper;
import cn.itsource.serivce.IMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class MenuServiceImpl implements IMenuService {


    @Autowired
    private MenuMapper menuMapper;


    @Override
    public List<Menu> selectAllForTree() {
        return menuMapper.selectAllForTree();
    }

    @Override
    public List<Menu> selectMenuTreeByUserId(Long userId) {
        return menuMapper.selectMenuTreeByUserId(userId);
    }
}
